@import './element-ui.scss';

p {
  word-break: break-all;
}

.nas {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nac {
  cursor: not-allowed;
  opacity: 0.6;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tse {
  cursor: pointer;

  &:hover {
    opacity: 0.8;
  }

  &:active {
    opacity: 1;
  }
}

.rl1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rl2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.rl3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.rl20 {
  display: -webkit-box;
  -webkit-line-clamp: 20;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

.req {
  padding-right: 4px;
  color: #f73131;
}

.hsplit {
  width: 100%;
  height: 1px;
  background: #ccc;
}

.dialog-resource-name-box {
  padding: 10px 16px;
  border-radius: 2px;
  font-size: 14px;
  color: rgba(#000, 0.8);
  border: 1px dashed rgba(#000, 0.8);
  cursor: not-allowed;
}

.el-image-viewer__mask {
  opacity: 1 !important;
}

::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  background: rgba(#000000, 0) !important;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
  border-radius: 6px !important;
  border: 1px solid rgb(219, 219, 219) !important;
  background: rgba(#000000, 0) !important;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  border-radius: 6px !important;
  background: rgb(181, 181, 181) !important;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(#000000, 0) !important;
}

.context-menu-list {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.el-loading-parent--relative {
  position: static !important;
}

.el-loading-spinner {
  margin-top: -15vh !important;
}

.el-loading-spinner i {
  color: #409eff !important;
  font-size: 32px !important;
}

.el-loading-spinner .el-loading-text {
  color: #409eff;
  margin-top: 4px;
  font-size: 14px;
}

.margin-space-h {
  opacity: 0;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: #333;
}

.header-show {
  animation: slide-in-top 0.5s 1 alternate forwards;
}

.header-hide {
  animation: slide-out-top 0.5s 1 alternate forwards;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-100px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slide-out-top {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100px);
  }
}
